package com.syj.jsxjj.ui.renzheng.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.syj.jsxjj.ui.my.bean.MyBankBean;

/**
 * Created by xiejingwen on 2017/7/13 0013.
 */

public class ContentBean implements Parcelable {

    private PersonalBean personal;
    private ContactBean contract;
    private OperatorBean operator;

    private MyBankBean bankcard;
    public PersonalBean getPersonal() {
        return personal;
    }

    public void setPersonal(PersonalBean personal) {
        this.personal = personal;
    }

    public ContactBean getContract() {
        return contract;
    }

    public void setContract(ContactBean contract) {
        this.contract = contract;
    }

    public OperatorBean getOperator() {
        return operator;
    }

    public void setOperator(OperatorBean operator) {
        this.operator = operator;
    }

    public MyBankBean getBankcard() {
        return bankcard;
    }

    public void setBankcard(MyBankBean bankcard) {
        this.bankcard = bankcard;
    }

    public ContentBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.personal, flags);
        dest.writeParcelable(this.contract, flags);
        dest.writeParcelable(this.operator, flags);
        dest.writeParcelable(this.bankcard, flags);
    }

    protected ContentBean(Parcel in) {
        this.personal = in.readParcelable(PersonalBean.class.getClassLoader());
        this.contract = in.readParcelable(ContactBean.class.getClassLoader());
        this.operator = in.readParcelable(OperatorBean.class.getClassLoader());
        this.bankcard = in.readParcelable(MyBankBean.class.getClassLoader());
    }

    public static final Creator<ContentBean> CREATOR = new Creator<ContentBean>() {
        @Override
        public ContentBean createFromParcel(Parcel source) {
            return new ContentBean(source);
        }

        @Override
        public ContentBean[] newArray(int size) {
            return new ContentBean[size];
        }
    };
}
